﻿@using BonjourQuotation.UI.Models.GuideModel
@model ManageGuideCompanyInfoViewModel

@using (@Html.BeginForm("SaveGuideCompanyInfoData", "Guide", FormMethod.Post, new { id = "LoadGuideCompanyInfoForm" }))
{
   <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    
    @Html.HiddenFor(m=>Model.GuideID, new { @id = "CompanyInfoGuideID" })
    <div class="pull-right">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.FirstName)</span>
                    @Html.TextBoxFor(model => model.FirstName, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength30 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.LastName)</span>
                    @Html.TextBoxFor(model => model.LastName, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength30 Required" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.MiddleName)</span>
                    @Html.TextBoxFor(model => model.MiddleName, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength30" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SelectedRegionId)</span>
                    @Html.DropDownListFor(model => model.SelectedRegionId, new SelectList(Model.RegionId, "Value", "Text"), "Select", new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SelectedAreaId)</span>
                    @Html.DropDownListFor(model => model.SelectedAreaId, new SelectList(Model.AreaId, "Value", "Text"), "Select", new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation" })
                </div>
            </div>
           
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Phone)</span>
                    @Html.TextBoxFor(model => model.Phone, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Fax)</span>
                    @Html.TextBoxFor(model => model.Fax, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Active)</span>
                    @Html.CheckBoxFor(model => model.Active, new { @class = "GuideCompanyElementChange" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.IsFind)</span>
                    @Html.CheckBoxFor(model => model.IsFind, new { @class = "GuideCompanyElementChange" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.DateHired)</span>
                    @Html.TextBoxFor(model => model.DateHired, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control GuideDeteilsDataCalendar ElementsForValidation Date", @style = "cursor:pointer" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Salary)</span>
                    @Html.TextBoxFor(model => model.Salary, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control money" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Note)</span>
                    @Html.TextAreaFor(model => model.Note, new { @class = "GuideCompanyElementChange table_inputs_SmallPadding2 inpputgr form-control" })
                </div>
            </div>
        </div>
        <div class="SaveCancelDiv">
            <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
            @if(Model.MenuManageGuideEdit)
            { 
                <button class="btn14 btn50" type="button" id="GuideCompanyInfoSaveBtn">Save</button>
            }
            else
            {
                <button class="btn14 btn50 disabled" type="button" disabled="disabled" id="GuideCompanyInfoSaveBtn">Save</button>
            }
        </div>
    </div>
}





